package com.czxy.day01sp001.controller;


import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("/hello")
public class HelloController {

    @RequestMapping("/show01")
    public  void  show01(){

        System.out.println("show01执行了");


    }

    @RequestMapping("/show02")
    public  String show02(Model model){
        System.out.println("show02执行了");
        model.addAttribute("msg","秽土刘心");

        return "/show01.jsp";
    }
}
